Static Code Metrics Report

The static code metrics report provides statistics of the generated code. Metrics are estimated from static analysis of the generated code using the C data types specified in the 'Device details' section of the Configuration Parameter > Hardware Implementation pane: char 8, short 16, int 32, long 32, float 32, double 64, pointer 32 bits. If your model contains a Variant block, the Static Code Metrics Report does not contain data for the inactive variant. Actual object code metrics might differ due to target specific compiler and platform settings. Consult the Code Generation Advisor help.png for options to improve code efficiency.

Table of Contents

  1. File Information
  2. Global Variables
  3. Function Information

1. File Information [hide]

[-] Summary (includes referenced model files, excludes NTCM_Procedure_ssf.c, host_timer_x86.c)

Number of .c files : 33  
Number of .h files : 47  
Lines of code : 5,123  
Lines : 10,258  

[-] File details

File Name Lines of Code Lines Referenced Model Generated On
rtiostream_tcpip.c 1,344 2,011 shared 09/13/2019 3:05 PM
xil_interface_lib.c 560 721 shared 10/01/2019 7:17 PM
xil_interface.c 324 460 shared 04/26/2022 4:40 PM
target_io.c 297 456 shared 06/17/2020 9:28 AM
coder_assumptions_app.c 242 391 shared 01/28/2020 2:36 PM
ChekInput.c 217 368 04/26/2022 4:40 PM
xil_data_stream.c 134 204 shared 01/17/2020 4:30 PM
xil_services.c 122 159 shared 01/17/2020 4:47 PM
NTCM_G.c 113 419 NTCM_G 04/26/2022 10:03 AM
xilcomms_rtiostream.c 98 162 shared 01/17/2020 4:47 PM
xil_instrumentation.c 93 141 shared 04/26/2022 4:40 PM
CheckOutput.c 91 221 04/26/2022 4:40 PM
codeinstr_data_stream.c 77 119 shared 05/20/2015 3:28 PM
rtwtypes.h 67 151 shared 04/26/2022 10:03 AM
rtiostream_utils.c 66 104 shared 04/17/2013 9:28 AM
NTCM_Procedure_Core.c 62 344 04/26/2022 4:40 PM
coder_assumptions_shared_enums.h 61 73 shared 01/28/2020 2:37 PM
coder_assumptions_data_stream.c 53 88 shared 01/17/2020 4:30 PM
xil_interface_common.h 53 78 shared 09/02/2019 4:12 PM
rx_tx_buffer_sizes.h 42 82 shared 07/24/2017 11:29 AM
NTCM_Procedure.c 41 248 04/26/2022 4:40 PM
ElevetionCheck.c 40 146 04/26/2022 4:40 PM
ComputeDoA.c 39 107 04/26/2022 4:40 PM
ErrorMnG.c 37 127 04/26/2022 4:40 PM
Check.c 31 97 04/26/2022 4:40 PM
rtiostream.h 28 55 shared 11/09/2012 6:59 AM
coder_assumptions_rtiostream.c 27 51 shared 01/17/2020 4:30 PM
xil_rtiostream.c 27 50 shared 01/17/2020 4:30 PM
NTCM_G.h 27 93 NTCM_G 04/26/2022 10:03 AM
codeinstr_rtiostream.c 26 49 shared 05/24/2015 10:52 AM
Compute_IonoDelay.c 26 90 04/26/2022 4:40 PM
CoderAssumpTgtAppSvc_CInterface.h 25 39 shared 11/15/2020 2:03 AM
xil_interface.h 25 71 shared 09/30/2019 9:24 PM
NTCM_Procedure.h 25 135 04/26/2022 4:40 PM
xil_interface_lib_private.h 24 45 shared 02/02/2017 12:31 PM
xil_instrumentation.h 23 59 shared 04/26/2022 4:40 PM
sil_main.c 22 40 shared 01/17/2020 4:30 PM
xil_interface_lib.h 21 42 shared 05/31/2018 12:55 PM
XILTgtAppSvc.h 20 30 shared 11/15/2020 2:03 AM
rtiostream_utils.h 20 36 shared 11/09/2012 8:31 AM
ErrorMnG.h 20 70 04/26/2022 4:40 PM
NTCM_Procedure_Core.h 20 61 04/26/2022 4:40 PM
rt_roundd.c 19 48 shared 04/26/2022 10:03 AM
host_timer_x86.h 18 35 shared 06/26/2018 3:37 PM
xil_data_stream.h 17 35 shared 08/04/2016 10:19 PM
getIonoPiercePoint.c 16 83 04/26/2022 4:40 PM
NTCM_G_Coeff.h 16 46 shared 04/26/2022 10:03 AM
PhysicalConst.h 16 46 shared 04/26/2022 4:40 PM
xil_common.h 15 39 shared 09/20/2013 8:33 PM
llh2xyz.c 15 84 04/26/2022 4:40 PM
XILTgtAppSvc_CInterface.h 14 27 shared 11/15/2020 2:03 AM
target_io.h 14 39 shared 04/23/2020 6:28 AM
CheckOutput.h 14 55 04/26/2022 4:40 PM
CodeInstrTgtAppSvc.h 13 23 shared 11/15/2020 2:03 AM
ChekInput.h 13 52 04/26/2022 4:40 PM
ElevetionCheck.h 13 54 04/26/2022 4:40 PM
Check.h 13 44 shared 04/26/2022 10:03 AM
CodeInstrTgtAppSvc_CInterface.h 12 23 shared 11/15/2020 2:03 AM
NTCM_Procedure_types.h 12 59 04/26/2022 4:40 PM
comms_interface.h 11 20 shared 01/17/2020 4:30 PM
ComputeDoA.h 11 50 04/26/2022 4:40 PM
Compute_sTEC.c 11 74 04/26/2022 4:40 PM
getIonoPiercePoint.h 11 50 04/26/2022 4:40 PM
Compute_sTEC.h 10 49 04/26/2022 4:40 PM
llh2xyz.h 10 49 04/26/2022 4:40 PM
llh2xyz_Rec.h 10 51 04/26/2022 4:40 PM
llh2xyz_Sat.h 10 51 04/26/2022 4:40 PM
ComputeLocalTime.h 9 48 04/26/2022 4:40 PM
Compute_IonoDelay.h 9 48 04/26/2022 4:40 PM
ErrorCode.h 8 38 shared 04/26/2022 10:03 AM
coder_assumptions_data_stream.h 7 16 shared 11/27/2017 12:39 PM
ComputeLocalTime.c 7 69 04/26/2022 4:40 PM
llh2xyz_Rec.c 7 86 04/26/2022 4:40 PM
llh2xyz_Sat.c 7 85 04/26/2022 4:40 PM
NTCM_Procedure_private.h 6 44 04/26/2022 4:40 PM
codeinstr_data_stream.h 5 19 shared 05/19/2015 8:22 AM
rt_roundd.h 5 34 shared 04/26/2022 10:03 AM
NTCM_G_private.h 4 40 NTCM_G 04/26/2022 10:03 AM
NTCM_G_types.h 3 41 NTCM_G 04/26/2022 10:03 AM
coder_assumptions_app.h 2 11 shared 09/24/2015 4:46 PM

2. Global Variables [hide]

Global variables defined in the generated code.
Global Variable Size (bytes) Reads / Writes Reads / Writes in a Function
     xilCommsBuffer 50000 2  2 
     codeInstrWriteBuffer 25000 2  1 
     xilWriteBuffer 25000 2  1 
[+] connectionDataArray 2000 4  2 
     RangeLwIn 96 36  36 
     RangeUpIn 96 36  36 
     targetStdioBuffer 64 7  7 
     targetStdioTmpBuff 60 11  11 
[+] xil_fcnid0_task1_output_u 56 15  15 
[+] xil_fcnid0_task1_y 40 11  11 
     coderAssumpWriteBuffer 32 2  1 
     o_ErrorCode 32 3  1 
     RangeLwOut 24 9  9 
     RangeUpOut 24 9  9 
     i_brdcIonoParam 24 2  1 
     i_llhRecDeg 24 2  1 
     i_llhSatDeg 24 2  1 
[+] cc 16 73  59 
     subFmt 15 18  18 
     RangeLwEl 8 3  3 
     RangeUpEl 8 3  3 
     i_Doy 8 2  1 
     i_UTC 8 2  1 
     i_fcarr 8 2  1 
     o_delay_m 8 3  1 
     o_sTEC 8 3  1 
     o_vTEC 8 3  1 
     xsd_xil_timer_corrected 8 3  2 
     xsd_xil_timer_unfreeze 8 2  1 
     codeInstrWriteBuffer 4 3  3 
     codeInstrWriteDataPtr 4 4  3 
     commandComplete 4 3  2 
     pBuffer 4 3  2 
     coderAssumptionsWriteDataPtr 4 4  3 
     pBuffer 4 3  2 
     commandResponseType 4 4  2 
     pBuffer 4 3  2 
     xilWriteBuffer 4 3  3 
     xilWriteDataPtr 4 4  3 
     xsd_xil_freezing_busy 4 2  1 
     isShutdownCommand 4 2  1 
     processMsgSuccess 4 32  26 
[+] xilIODataPtr 4 17  6 
     streamID 4 7  3 
     codeInstrWriteDataAvail 2 6  4 
     coderAssumptionsWriteDataAvail 2 5  3 
     fid 2 6  6 
     xilWriteDataAvail 2 6  4 
[+] NTCM_Procedure_P 1 1  1 
     pwsEnabled 1 3  3 
Total 102,777 393 

3. Function Information [hide]

View function metrics in a call tree format or table format. Accumulated stack numbers include the estimated stack size of the function plus the maximum of the accumulated stack size of the subroutines that the function calls.
View:Call Tree | Table
Function Name Accumulated Stack Size (bytes) Self Stack Size (bytes) Lines of Code Lines Complexity
[+]  main 1,148 12 19 29 5
[+]  xilCommandDispatchAndResponse 690 5 26 48 6
[+]  XILSigHandler 291 1 42 54 5
[+]  targetFprintf 250 4 5 11 1
[+]  targetPrintf 250 4 4 8 1
[+]  targetvPrintf 246 0 1 4 1
[+]  profileEnd_NTCM_G 169 0 1 4 1
[+]  profileEnd_NTCM_Procedure 169 0 1 4 1
[+]  targetFopen 168 3 23 44 2
[+]  profileStart_NTCM_G 165 0 1 4 1
[+]  profileStart_NTCM_Procedure 165 0 1 4 1
      __bswap_32 0 0 1 4 1
      __bswap_64 0 0 1 4 1
      xilGetCurrentProcessMsgContext 0 0 1 4 1
[+]  xilProfilingTimerFreeze 0 0 3 6 2
[+]  xilProfilingTimerUnFreeze 0 0 3 6 2